{include file="biz/biz_header.html"} 
{include file="biz/biz_nav.html"}
<script type='text/javascript'  src='{$APP_ROOT}/admin/public/kindeditor/kindeditor.js'></script>
<script type="text/javascript">
	var VAR_MODULE = "m";
	var VAR_ACTION = "a";
	var ROOT = '{$APP_ROOT}/biz.php';
	var ROOT_PATH = '{$APP_ROOT}';
</script>
<style type="text/css">
	.uc-order table{ width:100%; border-top:none; border-left:none;}
	.uc-order table#order_info{ width:100%; border-top:1px solid #ccc; border-left:1px solid #ccc;}
</style>
<div class="wrap clearfix wb biz-wrap">
{include file="biz/biz_info_header.html"}
<div class="biz_index_box clearfix">

	<div class="p10 clearfix">
		<div class="uc-order">
		<form action="{url x="biz" r="ctmenu#update"}" method="post">
		<table cellspacing="1" cellpadding="0" border="0" id="order_info">
			<tbody>
			<tr>
				<td colspan="2">
					<span class="grebtn grebtn_s lh22">
	                    <i class="green_line"></i>
	                    <strong class="grebtn_in"><a href="{url x="biz" r="ctmenu"}" class="grebtn_bg">返回菜单列表</a></strong>
	                    <i class="green_line"></i>
	                </span>
				</td>
			</tr>
			<tr>
				<td width="100">菜单名称：</td>
				<td class="rtd" >
					<input type="text" name="name" size="40" value="{$menu_info.name}" class="f-input" />
				</td>
			</tr>
			
			<tr>
				<td>所属餐厅：</td>
				<td class="rtd" >
					<select name="supplier_location_id">
					{foreach from=$loactions item=lo}
					<option value="{$lo.id}" {if $menu_info.supplier_location_id eq $lo.id}selected="selected"{/if}>{$lo.name}</option>
					{/foreach}
				</select>
				</td>
			</tr>

			<tr>
				<td>图片：</td>
				<td  style="height:40px;padding-left:0;vertical-align:top;" class="no-border" >
					{function name="show_ke_image" v="preview" cn="$menu_info.preview"}
				</td>
			</tr>
			
			<tr id="deal_cate">
				<td>分类：</td>
				<td>
					<select name="cate_id" id="cate_id">
					{foreach from=$cate_list item=cate}
					<option value="{$cate.id}" {if $cate.id eq $menu_info.cate_id}selected="selected"{/if}>{$cate.name}</option>
					{/foreach}
					</select>
				</td>
			</tr>
			<tr id="menu_cate_type_row" style="display:none;">
				<td>子分类：</td>
				<td>
					<span></span>
				</td>
			</tr>
			
			<tr>
				<td>价格：</td>
				<td class="rtd" >
					<input type="text" name="price" size="8" value="{$menu_info.price}" class="f-input" />
				</td>
			</tr>
			
			<tr>
				<td >特色菜：</td>
				<td class="rtd" >
					<select name="is_special">
						<option value="0" {if $menu_info.is_special eq 0}selected="selected"{/if}>否</option>
						<option value="1" {if $menu_info.is_special eq 1}selected="selected"{/if}>是</option>
					</select>
				</td>
			</tr>
			
									
			<tr>
				<td>
				简介：									
				</td>									
				<td style="text-align: left;" class="rtd" >
					<textarea name="brief" class="f-text" rows="10" cols="70">{$menu_info.brief}</textarea>
				</td>
			</tr>
			
			<tr>
				<td colspan="2" style="text-align:center;">
					<input type="submit" class="formbutton" id="do-modify" name="commit" value="{$LANG.DOMODIFY}">
					<input type="reset" class="formbutton2" id="do-reset" name="commit" value="{$LANG.RESET}">
					<input type="hidden" name="menu_id" id="menu_id" value="{$menu_info.id}">
				</td>
			</tr>
			
		</tbody>
		</table>
	</form>
	</div>
	</div>
<div class="blank"></div>
</div><!--end biz_index_box-->

</div>
<script type="text/javascript">
	$(document).ready(function(){
		load_menu_cate_type();
		$("#cate_id").bind("change",function(){
			load_menu_cate_type();
		});
	});
</script>
{include file="biz/biz_footer.html"} 